﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Frame.Lib.Core.Right
{
    public abstract class RightBase
    {
        #region 创建记录权限对象
        /// <summary>
        /// 创建记录权限对象
        /// </summary>
        /// <param name="strRightID"></param>
        /// <param name="ownerType"></param>
        /// <returns></returns>
        public static IRecordRightDAL CreateRecordRight(string strTableName)
        {
            return new RecordRightDAL(strTableName);
        }
        #endregion

        #region 创建系统权限对象
        /// <summary>
        /// 创建系统权限对象
        /// </summary>
        /// <param name="ownerType"></param>
        /// <returns></returns>
        public static ISystemRightDAL CreateSystemRight(int ownerType)
        {
            return new SystemRightDAL(ownerType);
        }
        #endregion   
    }
}
